-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
round-trip pvalues without exploding #1463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
round-trip pvalues without exploding #1463
Conversation
@vishr please let me know if I need to do anything else, here. I'm eager to get this fixed so that we can continue migrating to v4 :) |
Ping! I'm still hoping to get someone's attention on this... |
@dlowe Give me few hours :) |
@dlowe Can you look at the failing build? |
2f48f23
to
748dc63
Compare
@vishr oooops! Fixed now and rebased. |
Codecov Report
@@ Coverage Diff @@
## master #1463 +/- ##
==========================================
+ Coverage 84.34% 84.35% +<.01%
==========================================
Files 27 27
Lines 2076 2077 +1
==========================================
+ Hits 1751 1752 +1
Misses 212 212
Partials 113 113
Continue to review full report at Codecov.
|
@vishr could you please cut a 4.1.14 release soon? |
Done! |
@dlowe / @vishr how is I am unable to see the use of this parameter. Currently, this change is breaking unit tests in projects that use echo; see: #1492 |
Normally, maxParam is set internally by I don't think this is ideal... but I don't understand the point of maxParam, so I don't know what would be an appropriate improvement :/ |
When upgrading a codebase from echo v3 to v4, I bumped into this: calling
SetParamValues
doesn't protect against resizingpvalues
, which causes subsequent calls toReset
to panic if it becomes smaller than*e.maxParam
.It's entirely possible this codebase is doing something it shouldn't, to end up in this state (specifically where
*e.maxParam
!=len(c.pvalues)
?) Regardless, I believeSetParamValues
shouldn't allow callers to screw up the internals of the context.